package com.boot.business.demo.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Getter;
import lombok.Setter;

import com.boot.business.common.entity.AbstractEntity;


@Entity
@Table(name = "sec_user")
@Getter
@Setter
public class User extends AbstractEntity  implements Serializable{
    
	private static final long serialVersionUID = 1967662339663454461L;
	@Column(name = "account")
	public String account;      // 账号
    @Column(name = "name")
    private String name;// 姓名
    @Column(name = "password")
    private String password;
    @Column(name = "username")
    private String username;
    @Column(name = "division_id")
    private Integer divisionId;
    @Column(name = "email")
    private String email;
    @Column(name = "gender")
    private String gender;
    @Column(name = "telephone")
    private String telephone;
    @Column(name = "deptId")
    public String deptId;      // 部门id
    @Column(name = "deptName")
    public String deptName;        // 部门名称
    @Column(name = "status")
    private Integer status;
    @Transient
    public List<String> roleList; // 角色集
    @Transient
    public List<String> roleNames; // 角色名称集


}